export default {
  "post /api/login"(req,res){
    const {username,password} = req.body;
    if(username==='admin' && password ==='123'){
      return res.json({
        code:0,
        data:{
          token:'umitest_admin',
          role:'admin',
          balance:1000,
          username:'admin'
        }
      })
    }else{
      return res.status(401).json({
        code:-1,
        msg:'用户名或密码错误'
      })
    }
  }
}